package com.lnu_devteam.zongce.common;

/**
 * @author xbaozi
 * @version 1.0
 * @classname TokenResponse
 * @date 2023-04-07  15:18
 * @description 登录统一响应类
 */
public class TokenResponse<T> extends BaseResponse<T>{

    private String authentication;

    public TokenResponse(int code, T data, String message, String authentication) {
        super(code, data, message);
        this.authentication = authentication;
    }

    public TokenResponse(int code, T data, String message) {
        super(code, data, message);
    }

    public TokenResponse(ErrorCode errorCode, String authentication) {
        super(errorCode);
        this.authentication = authentication;
    }

    public TokenResponse(int code, T data) {
        super(code, data);
    }

    public TokenResponse(ErrorCode errorCode) {
        super(errorCode);
    }

    public String getAuthentication() {
        return authentication;
    }

    public void setAuthentication(String authentication) {
        this.authentication = authentication;
    }
}
